﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


class Program
{
    static void Main()
    {
        string filePath = @"..\..\txt2.txt";
        string filePathResult = @"..\..\txt3.txt";
        StringBuilder contents = new StringBuilder();
        


        using (StreamReader reader = new StreamReader(filePath))
        {
            int counter = 0;
            while (reader.ReadLine() != null)
            {
                counter++;
                contents.Append("\nLine [" + counter + "]: "+ reader.ReadLine().ToString());
            }
        }

        using (StreamWriter writer = new StreamWriter(filePathResult))
        {
            writer.AutoFlush = false;
            writer.Write(contents);
            writer.Flush();
        }
        //Console.WriteLine(contents);
    }
}

